package com.lry.netty01.server.utils;

import org.springframework.util.StringUtils;

public class StringChecker {

    public static final String  NULL_STR = "null";

    public static final String   UNDEFINED_STR= "undefined";

    public static boolean isValid(String str)
    {
        return !isInvalid(str);
    }

    public static boolean isInvalid(String str)
    {
        return StringUtils.isEmpty(str)|| NULL_STR.equalsIgnoreCase(str)|| UNDEFINED_STR.equalsIgnoreCase(str);
    }
}
